package ooday01;
//汽车
public class Car {
    String brand;//品牌
    String color;//颜色
    double price;//价格
    Car(){
    }
    Car(String brand,String color,double price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void start(){
        System.out.println(color+price+"万元的"+brand+"启动了");
    }
    void run(){
        System.out.println(color+price+"万元的"+brand+"开始跑了");
    }
    void stop(){
        System.out.println(color+price+"万元的"+brand+"停止了");
    }
}
